package com.luboyan.CBillbill.service.file;

import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.util.HashMap;

@Service
public interface FileService {

    /**
     * 分片上传文件
     */
    HashMap<String, String> uploadFileByShard(MultipartFile file, String fileMd5, Integer shard, Integer shardTotal) throws Exception;


    /**
     * 获得文件的md5加密
     */
    String getFileMd5(MultipartFile file) throws Exception;

    /**
     * 上传视频封面
     */
    String uploadImg(MultipartFile file, String fileMd5) throws Exception;
}
